interface menu {
    component: string
    extend: string
    icon: string
    id: number,
    keepAlive: number|string
    menu_type: string
    name: string
    path: string
    pid: number,
    title: string
    type: string
    url: string
}

const menus:menu[] = [
    {
        component: '/src/views/modules/home/index.vue',
        extend: 'none',
        icon: 'fa fa-dashboard',
        id: 1,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'home',
        path: 'home',
        pid: 0,
        title: '首页',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/classify/index.vue',
        extend: 'none',
        icon: 'fa fa-list',
        id: 2,
        keepAlive: 'classify',
        menu_type: 'tab',
        name: 'classify',
        path: 'classify',
        pid: 0,
        title: '分类管理',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/tag/index.vue',
        extend: 'none',
        icon: 'fa fa-tags',
        id: 3,
        keepAlive: 'tag',
        menu_type: 'tab',
        name: 'tag',
        path: 'tag',
        pid: 0,
        title: '标签管理',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/article/index.vue',
        extend: 'none',
        icon: 'fa fa-book',
        id: 4,
        keepAlive: 'article',
        menu_type: 'tab',
        name: 'article',
        path: 'article',
        pid: 0,
        title: '文章管理',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/article/form.vue',
        extend: 'add_rules_only',
        icon: '',
        id: 5,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'article-add',
        path: 'article-add',
        pid: 0,
        title: '文章添加',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/article/form.vue',
        extend: 'add_rules_only',
        icon: '',
        id: 6,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'article-edit',
        path: 'article-edit/:id',
        pid: 0,
        title: '文章编辑',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/banner/index.vue',
        extend: 'none',
        icon: 'fa fa-image',
        id: 7,
        keepAlive: 'banner',
        menu_type: 'tab',
        name: 'banner',
        path: 'banner',
        pid: 0,
        title: '广告管理',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/banner/form.vue',
        extend: 'add_rules_only',
        icon: 'fa fa-image',
        id: 8,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'banner-add',
        path: 'banner-add',
        pid: 0,
        title: '广告添加',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/banner/form.vue',
        extend: 'add_rules_only',
        icon: 'fa fa-image',
        id: 9,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'banner-edit',
        path: 'banner-edit/:id',
        pid: 0,
        title: '广告编辑',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/link/index.vue',
        extend: 'none',
        icon: 'fa fa-link',
        id: 10,
        keepAlive: 'link',
        menu_type: 'tab',
        name: 'link',
        path: 'link',
        pid: 0,
        title: '友情链接管理',
        type: 'menu',
        url: ''
    },
    {
        component: '/src/views/modules/admin/index.vue',
        extend: 'add_rules_only',
        icon: '',
        id: 8,
        keepAlive: 1,
        menu_type: 'tab',
        name: 'admin',
        path: 'admin',
        pid: 0,
        title: '管理员信息',
        type: 'menu',
        url: ''
    }
]

export default menus